<%@page import="com.chauncy.DMS.bean.ManagerInfoBean"%>
<%@page import="com.chauncy.DMS.bean.DormInfoBean"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	List<ManagerInfoBean> managerList = (List)request.getSession().getAttribute("managerInfoList");
	System.out.print("managerList:"+managerList.get(0).getManager_name());
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
		<title>管理员页面</title>
		<link rel="stylesheet" href="./layui/css/layui.css" />
		
		<script type="text/javascript" src="./layui/layui.js" ></script>
		<link rel="stylesheet" href="./css/manager_page.css" />

	</head>
	<body>
		<div class="main-layout">
			<!--作者：1097172038@qq.com 时间：2018-09-17 描述：侧边栏-->
            <div class="main-layout-side">
            	<!--时间：2018-09-17 描述：logo-->
            	<div class="m-logo"></div>
            	<ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
            		<li class="layui-nav-item layui-show"><a href="javascript:;" data-url="./managerPage/m_info_aggregation.jsp" data-id="1" data-text="信息汇总">信息汇总</a></li>
            		<li class="layui-nav-item"><a href="javascript:;" data-url="./managerPage/m_dorm_management.jsp" data-id = "2" data-text = "宿舍管理">宿舍管理</a>
            		</li>
            		<li class="layui-nav-item">
            			<a href="javascript:;" >考勤管理</a>
            			<dl class="layui-nav-child">
            				<dd><a href="javascript:;" data-url="./managerPage/m_stu_att_info.jsp" data-id="3" data-text="所有考勤">所有考勤</a></dd>
            				<dd><a href="javascript:;" data-url="./managerPage/m_select_stu_att_info.jsp" data-id="4" data-text="考勤查询">考勤查询</a></dd>
            				<dd><a href="javascript:;" data-url="./managerPage/m_att_info_input.jsp" data-id="5" data-text="考勤录入">考勤录入</a></dd>
            			</dl>
            		</li>
            		<li class="layui-nav-item">
            			<a href="javascript:;">卫生管理</a>
            			<dl class="layui-nav-child">
            				<dd><a href="javascript:;" data-url="./managerPage/m_all_health_info.jsp" data-id="6" data-text="所有卫生">所有卫生</a></dd>
            				<dd><a href="javascript:;" data-url="./managerPage/m_health_info_input.jsp" data-id="8" data-text="卫生录入">卫生录入</a></dd>
            				
            			</dl>
            		</li>
            	</ul>
            </div>
            <!--作者：1097172038@qq.com 时间：2018-09-17 描述：右侧内容 -->
            <div class="main-layui-container">
            	<!-- 作者：1097172038@qq.com 时间：2018-09-17 描述：头部-->
            	<div class="main-layout-header">
            		<div class="menu-btn" id="hidemenu">
            			<a href="javascript:;">
            				<i class="layui-icon layui-icon-shrink-right" style="font-size: 30px;"></i>
            			</a>
            		</div>
            		<ul class="layui-nav layui-layout-right" lay-filter="rightNav">
            		<%if(managerList.size() > 0){%>
            				<li class="layui-nav-item "><a href="javascript:;" data-url = "sssss.html">管理员:<%=managerList.get(0).getManager_name() %></a></li>
            			<% }else{%>
            				<li class="layui-nav-item "><a href="javascript:;" data-url = "sssss.html">管理员:Chauncy</a></li>
            		<%	}%>
            			
            			<li class="layui-nav-item "><a href="managerLoginServlet?logout=logout">退出登录</a></li>
            		</ul>
            	</div>
            	<!--  作者：1097172038@qq.com 时间：2018-09-17  描述：主体内容  -->
            	<div class="main-layout-body">
            		<!--tab 切换-->
            		<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tabs" lay-allowClose="true">
            			<ul class="layui-tab-title">
            				<li class="layui-this ">欢迎页面</li>
            			</ul>
            			<div class="layui-tab-content" style="height: 100%;">
            				<div class="layui-tab-item layui-show" >
            					<iframe src="./managerPage/welcome.jsp" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
            				</div>
            			</div>
            		</div>
            	</div>
            </div>
		</div>
	</body>
<script type="text/javascript" src="./js/manager_page.js" ></script>
</html>
